import http from '@src/util/http';
const headerUrl='/api/task';

// 工单归档
export function archiveTask(params={}){
  return http.post(`${headerUrl}/outside/pc/task/archiveTask`,params);
}

// 归档列表
export function archiveList(params={}){
  return http.post(`${headerUrl}/outside/pc/task/archive/search`,params);
}

// 删除
export function removeTask(params={}){
  return http.post(`${headerUrl}/outside/pc/task/archive/removeTask`,params);
}

// 获取归档工单数量
export function getCount(params={}){
  return http.post(`${headerUrl}/outside/pc/task/archive/count`,params);
}

// 获取详情页的归档工单列表
export function getList(params={}){
  return http.post(`${headerUrl}/outside/pc/task/archive/list`,params);
}

// 导出
export function newExport(params={}){
  return http.post('/excels/task/newExport',params);
}

// 获取工单所有附加组件
export function getEnabledCardList(params = {}){
  return http.get('/api/task/outside/pc/task/getEnabledCardList', params);
}